home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir29
/
lotto82.zip
/
LOTTO.DOC
< prev
next >
Wrap
Text File
|
1994-10-14
|
7KB
|
199 lines
Lotto
=================================================================
This lotto program supports a 49 number lotto system as used
by the State of Washington. Works for any lotto using 49 numbers,
six picks, no free, alternates, etc.
I wrote this program because I have had some numbers picked
by the Washington State computer that each line's numbers were
almost sequential with the previous line's numbers. Example:
3 12 17 24 36 40
5 14 18 27 39 42
Or whatever. I believe the above problem with the State's
computer was that the computer was very busy being fed number
requests from all over the state. Normally these printouts
(computer picks) are done almost instantaneously, but on the case
in question there were many seconds between each line. I am sure
the computer was picking totally random picks and that my picks
just came out as in the example because other numbers were picked
between my lines. It upset me so I wrote this program to do my
own picking. I think my computer is just as good as any State's
computer. (grin)
Earlier versions were written using QuickBASIC 3.0, which
required the presence of Microsoft's BRUN30.EXE. I rewrote the
program using Turbo Pascal 5.5. Version 7.10+ has been compiled
with Turbo Pascal 7.0, which is somewhat smaller and faster. Also
said 'Public Domain' which has now been changed to 'Freeware' to
show that I retain the copyrights but that no registration /
donation fee is sought or required. Any funds sent in will be
appreciated and accepted, but not required.
Apostrophes are used in this documentation for high lighting
purposes only and are not required for use in the program or from
the DOS prompt.
To start the program type in either of the following
commands at the DOS prompt:
'LOTTO' or 'LOTTO SOUND'
Typing in just 'Lotto' starts the program with the default
Sound Off. Using 'Lotto Sound' starts the program with Sound On.
If you do use the 'LOTTO SOUND' option the Sound On/Off inside
the program still works the same.
The program is pretty straight forward: It randomly picks
six numbers for each of ten lines, one complete set. No number in
any one row is duplicated. The numbers are displayed in sorted
order and the main prompt is displayed.
Another set <Y>es, <N>o, <P>rint, <I>nfo, <S>ound On/Off
Main Prompt choices, upper or lower case, are: Another set
press 'Y'. If you don't want another set press 'N' to exit the
program. Print out the currently displayed set press 'P'.
Information on the author or the program press 'I'. Turn sound On
or Off press 'S'.
I added the Sound On/Off feature for those who might not
like any sounds on their computer, or if they run a program at
work they might not want to draw attention to it. Others might
have a sleeping spouse, mother or father, etc. On my Pro Audio
Studio 16 sound card the PC speaker also comes out through the
sound card's speakers. So I opt for sound off myself from time to
time.
The program randomly picks two lines from each set marking
each with '>>'. On a color these two lines are red and on a mono
system you must watch for the '>>' at the start of the lines.
These two lines are the computer's pick for the Washington State
two picks for $1.
Using the print option puts five full (10 picks each) sets
of lotto numbers on a page. In Washington State a full set is
one full card for $5. This is two picks for $1.
Your printer should be set to IBM characters since I use
extended IBM graphic characters to make lines on the screen. If
your printer is not set for IBM you will get odd letters or
characters instead of lines. If you are using a PC or PC
compatible computer your printer should be set to IBM either by
dip switch or software setup. That is if your printer supports
IBM characters/emulation and most newer printers do.
Print out is the same but here '<<<' at the end of a line
designates the two picks made by the computer. You can use these
or ignore them. If you are using this program for other than
Washington State you can ignore the computer's double picks.
To get 5 sets per pages just keep pressing 'Y' for another
set and then 'P' to print. You can print out as many sets as you
want printing out only the sets you choose. My wife likes to pick
various lines that might look like good numbers rather than to
let the Washington State Lotto computer do the picking.
If there is a printer error, like not turned on, the program
halts and prompts you to press a key. This pause is to let you
turn the printer on if you have forgotten or if you pressed 'P'
by mistake and do not have a printer. After pressing a key the
Main Prompt returns and if need-be you can press 'P' again. The
lotto picks on the screen remain the same.
If you have done printing while in the program and have done
less than 5 sets the program does a form feed when exiting. For
those of you who do not like this feature I am sorry, but if I do
a print out I have to form feed manually to get my printout.
I would enjoy hearing from you about your likes, dislikes or
suggestions on any of my programs. I am user friendly! Feel free
to contact me if you have any problems or questions. When writing
please include a self addressed stamped envelope (SASE) if you
want a reply.
James H. Huckabey
3621-A Fraser Street
Bellingham, WA 98226-2473 U.S.A.
(206) 671-2868 (voice, Pacific)